const mysql = require('mysql')

// 创建连接
function connectMysql(){
    const connection = mysql.createConnection({
        host: 'localHost',
        user: 'root',
        password: 'a945271134',
        database: 'luminous'
    })
    connection.connect()
    return connection;
}

module.exports.connectMysql = connectMysql